﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Models;

namespace JXT.PrimaryKey.Batman.Domain.UserSystem.Models
{
    [Serializable]
    public class OAuthUserBinding : EntityBase<int>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 第三方的id(用于知道到底是哪一方的微博)
        /// </summary>
        public int OAuthId { get; set; }

        /// <summary>
        /// 微博用户名或者id
        /// </summary>
        public string OAuthUserIdentity { get; set; }

        /// <summary>
        /// 第三方用户的token
        /// </summary>
        public string OAuthToken { get; set; }

        /// <summary>
        /// 第三方的用户token_secret
        /// </summary>
        public string OAuthTokenSecret { get; set; }

        /// <summary>
        /// 第三方的Verifier
        /// </summary>
        public string OAuthVerifier { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime Expires { get; set; }

        public OAuthUserBinding()
        {
            Expires = DateTime.MaxValue;
        }
    }
}
